package com.xnfh.planting.viewmodel

import com.xnfh.common.bean.FindFieldRecordS
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.base.BaseRepository
import com.xnfh.network.manager.ApiManager
import okhttp3.RequestBody

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/15 18:06
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/15 18:06
 * @UpdateRemark: 更新说明
 */
class FindFieldRecordsViewModelRes : BaseRepository() {

    suspend fun requestFindFieldRecords(body: RequestBody, data: RespStateData<FindFieldRecordS>) = dealResp(
        { ApiManager.api.requestFindFieldRecords(body) }, data
    )

    suspend fun requestDelFindField(body: RequestBody, data: RespStateData<Any>) = dealResp(
        { ApiManager.api.requestDelFindFieldRecord(body) }, data
    )
}